In this video we will create an interactive price chart with our six stocks and we will discover the
functionalities in our interactive graph.
So for example we can zoom in and zoom out and many more things.
And first of all we import pandas and also cufflinks.
And again we determine explicitly that we want to work offline.
So we have to run the set config file method only once and then it should work in each and every two
but a notebook session.
So let's do this again here and let's import our stocks see a 3 file.
So here we have the closing prices for our six stocks and we create the normalized data frame and then
with the plot method we can create an interactive politely chart or graph and let's have a look here.
So this is our interactive graph and the.
If we hover here through the graph then we can see that it is interactive so we can see here that we
can hover back and forth and then we can see here the prices for our six stocks so here we have all
six stocks on our graph and uh we can all sort this a bit or delete the one or several specific graphs.
So let's assume we are not interested in the Boeing graph and then we can go uh to the let's end and
we can make a single click on the Boeing ledger and here slow and then you can see that the Boeing graph
disappeared and we can do this also for more than one graph so we can go here to the IBM graph and then
also here we're actually at this a bit.
The IBM graph and we can also get this graph back by again clicking here on Boeing and on IBM and we
can also select a single stock and uh we can do this uh by having a double click on one ticker.
So for example uh we decide to select your only uh the Apple stock graph.
So we perform a DoubleClick and then we can only see here the APA graph and if you double click again.
So we get back all the other graphs.
So here we are.
And let's go now here to the header.
So here for example we can zoom in and zoom out.
And we can also do this more specifically by using here this room.
So we have to click here on this room and then we can select a specific part of our graph that we are
interested in.
So for example here and there we can create here the area that we are interested in and here we have
assumed into this area.
So here we have uh the time period from July to 49 to lie to a 16.
And uh if you want to go back to the initial graph you can do so by clicking here on reset axis so here
we are back.
Now let's determine that we want to swim in here and the then here with uh the pan if we select pan
then we can shift here.
Our graph so from the left side to the right hand side from the top to the bottom and so on
and again we can go back here to the initial view and that's another functionalities so by default we
can see here for example the stock prices on September for our six stocks.
But we can also select.
So close this data on hover and if we enable this then we only see the very closest.
The point here.
So for example here the Apple stock price in October to 16.
And of course the fees so when we can see a daily data.
So let's do this here and let's shift here a little bit.
So for example here we can see the Apple stock price on the 22nd of October 2014.
So three hundred forty two point one 1.
And of course we can also go back to the initial uh view here compare data on hover.
So if we click here then we can see for all six stocks for example.
The prices on the 25th of November to 14 so these are the main functionalities of our interactive plot
Lee price chart.
And uh with this we are finished here and I hope to see you also in the next video by.